package com.tiancheng.trade.order.service;

import com.tiancheng.trade.commom.core.exception.BusinessException;

import java.util.List;
import java.util.Map;

/**
 * 消息订阅处理service接口
 *
 * @author kellen
 * @date 2024/5/22
 */
public interface MessageSubscribeService {

    /**
     * 处理消息
     * @param message
     * @throws BusinessException
     */
    void handle(String message) throws BusinessException;

    /**
     * 二维码订单关闭
     * @param message
     * @throws BusinessException
     */
    void qrOrderClose(String message) throws BusinessException;

    /**
     * 绑卡消息回调处理
     * @param paramsMap 消息内容
     */
    void bindingBankCardCallBack(Map<String, String> paramsMap);

    /**
     * 接口入，子订单状态流转
     * @param orderId
     * @param bizStatus
     * @param subOrderIdList
     */
    void statusFlowForSubOrderByInterface(String orderId, String bizStatus, List<String> subOrderIdList);

}
